Skip to contentSkip to conversation

Increase LV size of snapshot (not COW table size)

linux-lvm [email protected] 2 participants 3 messages Apr 15, 2008

lore
Share & tools
lore
#0 lore raw

I want to use LVM snapshots as CoW filesystems for virtual machines.

Is it possible to increase the apparent size of the snapshot LV without increasing the COW table size?

Basically I want to have a minimally sized filesystem on a lv which I snapshot for each virtual machine. I don't want to be restricted to having all the snapshots only be the size of the source lv. I want to increase the LV size of the snapshots at will and then resize the underlying filesystems to fill it out (sparsely within the COW table of course).

It seems that lvresize only increases the cow table size for snapshots, am I correct that LVM can't do what I want?

thanks alot!

#1 lore raw

You'll probably have better luck with unionfs. LVM doesn't really do what you're asking for.

Quoted 15 lines · On Apr 14, 2008, at 7:56 PM, [email protected] wrote:

I want to use LVM snapshots as CoW filesystems for virtual machines.

Is it possible to increase the apparent size of the snapshot LV without increasing the COW table size?

Basically I want to have a minimally sized filesystem on a lv which I snapshot for each virtual machine. I don't want to be restricted to having all the snapshots only be the size of the source lv. I want to increase the LV size of the snapshots at will and then resize the underlying filesystems to fill it out (sparsely within the COW table of course).

It seems that lvresize only increases the cow table size for snapshots, am I correct that LVM can't do what I want?

thanks alot!

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Signature · 5 lines
Jayson Vantuyl
Systems Architect
Engine Yard
[email protected]
1 866 518 9275 ext 204
#2 lore raw

ok, thanks

I'd rather do this at the block device level than at the filesystem level. It seems like this is possible using dmsetup directly, similarly to what is described in this blog post.

http://jons-thoughts.blogspot.com/2007/11/creating-sparse-block-devices.html

Are there any caveats to getting your own dm maps to play nice with lvm? Can i just pretend that lvs are block devices and map onto them?

Quoted 3 lines · Jayson Vantuyl

You'll probably have better luck with unionfs. LVM doesn't really do what you're asking for.